package io.renren.modules.employment.service.impl;

import java.util.List;

import io.renren.modules.employment.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.renren.modules.employment.dao.CompanyDao;
import io.renren.modules.employment.entity.Company;

/**
 * 公司接口的实现类
 * @author LSG
 *
 */
@Service
public class CompanyServiceImpl implements CompanyService {
	
	@Autowired
	CompanyDao companyDao;
	
	/**
	 * 添加公司的方法
	 */
	@Override
	public int addCompany(Company company) {
		int count = companyDao.addCompany(company);
		return count;
	}

	/**
	 * 对公司的模糊查询方法
	 */
	@Override
	public List<Company> selectCompanyByLike(String companyName) {
		List<Company> companyList = companyDao.selectCompanyByLike(companyName);
		return companyList;
	}

}
